CC = g++
CARGS = -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/opencv -Wall -DLINUX
LARGS = -lhighgui -lcvaux -lQtGui -lQt3Support

OBJS = processor.o 

%.o: %.cpp %.h
	$(CC) $(CARGS) -c $<

all: $(OBJS) project

doc: FORCE
	doxygen

project: main.cpp $(OBJS)
	make -C utils/
	make -C frame_evaluation/
	make -C mouse/
	make -C tinyxml/
	make -C configuration/
	make -C gestures/
	make -C painting/
	make -C hand_tracker/
	make -C bezier/
	make -C gui/
	$(CC) $(CARGS) $(LARGS) $(OBJS) utils/*.o frame_evaluation/*.o configuration/*.o gestures/*.o hand_tracker/*.o \
	tinyxml/*.o bezier/*.o mouse/*.o painting/*.o gui/*.o main.cpp -o slydini


clean:
	make clean -C utils/
	make clean -C mouse/
	make clean -C frame_evaluation/
	make clean -C configuration/
	make clean -C tinyxml/
	make clean -C gestures/
	make clean -C painting/
	make clean -C hand_tracker/
	make clean -C bezier/
	make clean -C gui/
	rm -f *.o slydini


FORCE:
